//引入express框架
const express = require('express');
const home= express.Router();
const { Article } = require('../model/article');

//文章详情页
home.get('/article_details',require('./home/article_details'));

//文章评论功能
home.post('/comment',require('./home/comment'));
//搜索功能
home.post('/search',require('./home/search'));

//留言功能
home.post('/message',require('./home/message'));

//点击文章分类获取相应的文章
home.get('/getCategoryArticle',require('./home/getCategoryArticle'));
module.exports = home;